﻿using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using SolutionFactory.Services;

namespace UnitTests
{
    [TestFixture]
    public class FileTokenReplacerTester
    {
        [Test]
        public void Should_replace_tokens_for_aspx_pages()
        {
            var replacer = new FileTokenReplacer(null);
            bool result = replacer.FileShouldHaveTokensReplaced(@"c:\foo\bar\Main.aspx");
            Assert.That(result, Is.True);
        }

        [Test]
        public void Should_replace_tokens_for_master_pages()
        {
            var replacer = new FileTokenReplacer(null);
            bool result = replacer.FileShouldHaveTokensReplaced(@"c:\foo\bar\Main.Master");
            Assert.That(result, Is.True);
        }
    }
}